{extend name="layout" /}
{block name="content"}
<div class="row">
  <div class="col-xs-3">
    <form id="searchForm">
      <div class="input-group input-group-sm demoTable">
        <input type="text" class="form-control input-sm" name="keywords" id="demoReload" autocomplete="off" placeholder="请输入姓名">
        <span class="input-group-btn">
          <button type="button" class="btn btn-info btn-flat layui-btn" data-type="reload">搜  索</button>
        </span>
      </div>
      <input type="hidden" name="typeid" value="{$typeid}"> 
      <input type="hidden" name="kind" value="{$kind}"> 
    </form>
  </div>
  <div class="col-xs-9" style="text-align: right">
    <button type="button" class="btn btn-info btn-sm export" title="销售报表"><i class="fa fa-edit"></i> 数据导出</button>
  </div>
</div>
<table class="layui-table" lay-data="{height: 'full-75', cellMinWidth: 80, page: true, limit:30, url:'{:url('data_show_where', ['typeid'=>$typeid, 'kind'=>$kind])}'}" lay-filter="lists"> 
  <thead>
    <tr>
      <th lay-data="{type:'checkbox'}">ID</th>
      <th lay-data="{field:'id', sort: true, fixed: 'right', width:80, align:'center'}">ID</th>
      <th lay-data="{field:'realname'}">经纪人</th>
      <th lay-data="{field:'dealer'}">所属经销商</th>
      <th lay-data="{field:'clients'}">提交线索数量</th>
      <th lay-data="{field:'price'}">成交总额</th>
      <th lay-data="{field:'suc_clients'}">成交客户</th>
      <th lay-data="{field:'addday'}">统计时间</th>
      <!-- <th lay-data="{fixed: 'right', width:180, align:'center', toolbar: '#barDemo'}">操作</th> -->
    </tr>
  </thead>
</table>
<script type="text/html" id="barDemo">
  <!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a> -->
  <!-- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a> -->
</script>
{/block}
{block name="script"}
<script type="text/javascript">
  function auth_manage(data) {
    var layindex = layer.open({
        type: 2,
        area: ['500px', '400px'],
        fixed: false, //不固定
        maxmin: true,
        content: APP_URL+"/admin/adminuser/user_auth?items="+data.id,
        title:'权限管理',
        shade: [0.8, '#000000']
      });
  }
</script>
{/block}